﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="event_list.aspx.cs" Inherits="admin_UKNOW_event_event_list" %>
<%@ Register TagPrefix="webdiyer" Namespace="Webplus.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">
    <title>Lomboz aspx</title>
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jUtility.js" type="text/javascript"></script>
    <script type="text/javascript">
        function deldata() {
            var s;
            var url;
            s = '该操作不能恢复,是否确认?';

            if (!isChecked(pageform.ids)) {
                alert("请选择要删除的信息!");
                return false;
            }
            if (confirm(s)) {
                return onhtml();
            }
            return false;
        }
        function auddata() {
            if (!isChecked(pageform.ids)) {
                alert("请选择要审核的信息!");
                return false;
            }
            return onhtml();
        }
        function pubdata() {
            if (!isChecked(pageform.ids)) {
                alert("请选择要发布的信息!");
                return false;
            }
            return onhtml();
        }
        function searchdata() {
            pageform.submit();
            return false;
        }

    </script>
    <script type="text/javascript">
        function openWin(id) {
            var src = document.getElementById("hdnPopupUrl").value;

            if (id != null && typeof id != "undefined")
                src += '&SeoID=' + id;

            var width = "800";
            var height = "600";
            PopupWindow(src, "", width, height);
        }
    </script>
    <script language="javascript">
<!--
        function PopupWindow(strUrlPath, strWindowName, iWidth, iHeight) {
            var objNewWin;
            var windowAttribs;
            if (iWidth == "") { iWidth = screen.availWidth; }
            if (iHeight == "") { iHeight = screen.availHeight; }
            windowAttribs = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=5,height=5,top=0,left=0,fullscreen=0";
            //windowAttribs = "fullscreen=5";	//窗口为最大化大小，没有关闭、最小化以及最大化按钮，但是窗口可以移动
            try {
                objNewWin = window.open(strUrlPath, strWindowName, windowAttribs);
                objNewWin.resizeTo(iWidth, iHeight);
                objNewWin.moveTo((screen.availWidth - iWidth) / 2, (screen.availHeight - iHeight) / 2);
                objNewWin.focus();
            } catch (e) { }

        }
//-->
</script>
    <style type="text/css">
        .style3
        {
            width: 27%;
        }
        .style4
        {
            width: 25%;
        }
    </style>
</head>
<body>
    <form id="pageform" runat="server" method="post">
    <input type=hidden runat=server id="hdnPopupUrl" />
    <table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0"
        bgcolor="#FFFFFF" id="_listpage">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" height="489" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="26">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="22" background="../../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="21">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="25">
                                        &nbsp;
                                    </td>
                                    <td width="100" align="left">
                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../../images/btn_blue_center.jpg">
                                                    <img src="../../images/icon_add.gif" width="16" height="14" />
                                                </td>
                                                <td align="left" background="../../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="add" OnClick="Add_click">新 增</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="100" align="left" runat="server" id="deltd">
                                        <%--                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../../images/btn_blue_center.jpg">
                                                    <img src="../../images/icon_delete.gif" width="15" height="15" />
                                                </td>
                                                <td align="left" background="../../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="del" OnClick="Del_click" OnClientClick="return deldata();">删 除</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                        --%>
                                    </td>
                                    <td width="100" runat="server" id="pubtd">
                                        <%--                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../../images/btn_blue_center.jpg">
                                                    <img src="../../images/icon_channel.gif" width="12" height="12" />
                                                </td>
                                                <td align="left" background="../../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="pub" OnClick="Pub_click" OnClientClick="return pubdata();">发 布</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                        --%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                            &nbsp;</td>
                    </tr>




                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <table width="95%" height="74" border="1" align="center" cellpadding="0" cellspacing="0"
                                bordercolorlight="#2583BC" bordercolordark="#ffffff" bgcolor="#B3CFEC">
                                <tr>
                                    <td width="100%" valign="top">
                                    <table width="100%">
                                    <tr>
                                    <td width="10%">搜索:</td>
                                    <td class="style4">
                                    活动名称:&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" Text="包含"  runat="server" />&nbsp;&nbsp;&nbsp;<asp:TextBox 
                                            ID="eventName" runat ="server" Width="173px"></asp:TextBox>
                                    </td>
                                    <td class="style3">
                                    发布状态:&nbsp;&nbsp;&nbsp;&nbsp;
                                       <asp:DropDownList runat="server"  ID="eventState" Width=50%>
                                                        <asp:ListItem Text="已发布" Value="1" />
                                                        <asp:ListItem Text="未发布" Value="0" />
                                                        <asp:ListItem Text="全部" Selected="True" Value="2" />
                                                    </asp:DropDownList>
                                        
                                        </td>
                                    <td width="20%">
                                       <asp:LinkButton runat="server" ID="SearchLinkButton" OnClick="Grid_viewBildPart" >搜索</asp:LinkButton><%--OnClick="Grid_viewBildPart"--%>
                                    </tr>
                                    </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>





                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="310" align="center" valign="top" style="padding-left: 10px;">
                            <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC"
                                bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" height="300" valign="top">
                                        <asp:GridView ID="GridView1" runat="server" Width="100%" border="0" CellPadding="0"
                                            CellSpacing="0" ShowFooter="false" AllowPaging="True" PageSize="10"
                                            AutoGenerateColumns="False"  >
                                            <Columns>
                                                <asp:TemplateField HeaderText="全选">
                                                    <HeaderTemplate>
                                                        全选
                                                        <input name="all" type="checkbox" onclick="selectall('ids');" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <input type="checkbox" value="<%# DataBinder.Eval(Container.DataItem, "ID") %>" name="ids" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="ID" DataField="ID" ItemStyle-CssClass="greytd" />
                                                <asp:BoundField DataField="Title" HeaderText="标题" ItemStyle-CssClass="greytd" />
                                                <asp:TemplateField HeaderText="列表图">
                                                    <HeaderTemplate>
                                                        列表图</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <img src='/uploadfiles/image/<%#Eval("ListImg")%>' width="50px" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>                                               
                                                <asp:TemplateField HeaderText="状态">
                                                    <HeaderTemplate>
                                                        状态</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("State").ToString() == "1" ? "发布" : "未发布"%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="特色活动">
                                                    <HeaderTemplate>
                                                        特色</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("IsSpecial").ToString() == "1" ? "是" : "否"%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="修改时间">
                                                    <HeaderTemplate>
                                                        修改时间</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#((DateTime)Eval("UpdatedTime")).ToString("yyyy/MM/dd HH:mm:ss")%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Order" HeaderText="显示顺序" ItemStyle-CssClass="greytd" />
                                                <asp:TemplateField HeaderText="管理">
                                                    <HeaderTemplate>
                                                        管理
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%-- <asp:LinkButton ID="preview" runat="server" OnClick="Preview_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>' >预览</asp:LinkButton> --%>
                                                        <a href="/admin/infomation/info_preview.aspx?cid=<%=Request.Params["columnid"] %>&langid=<%=Request.Params["langid"] %>&id=<%# DataBinder.Eval(Container.DataItem, "ID") %>&layerid=<%=Layerid %>" target="_blank">浏览</a>
                                                        <asp:LinkButton ID="mod" runat="server" OnClick="Mod_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'>修改</asp:LinkButton>
                                                        <asp:LinkButton ID="pubone" runat="server" OnClick="Pubone_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                                            OnClientClick="return onhtml()">状态</asp:LinkButton>
                                                        <%--                                                        <asp:LinkButton ID="seo" runat="server" OnClick="Seo_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>'>SEO优化</asp:LinkButton>
                                                        --%>
                                                        <asp:LinkButton ID="setSpecial" runat="server" Text="特色" OnClick="setSpecial_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                                            OnClientClick="return confirm('您确定要修改此设置吗?');"></asp:LinkButton>

                                                        <a href="javascript:" onclick="openWin('<%# DataBinder.Eval(Container.DataItem, "ID") %>')">SEO优化</a>
                                                        <asp:LinkButton ID="imgbtn" runat="server" OnClick="Img_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' >图片</asp:LinkButton>
                                                        <%--<a href="event_img_list.aspx?EventsID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&layerid=<%=Layerid %>">
                                                            图片</a>--%> 
                                                        <%--<a href="javascript:void(0);" onclick="wopen('info_video_list.aspx?EventsID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&layerid=<%=Layerid %>>','_video','625px','514px');">
                                                            视频</a>--%>
                                                            <asp:LinkButton ID="vidbtn" runat="server" OnClick="Video_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' >视频</asp:LinkButton>
                                                            <asp:LinkButton ID="sponsorbtn" runat="server" OnClick="Sponsor_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' >赞助商</asp:LinkButton>
                                                            <asp:LinkButton ID="PhoneImagebtn" runat="server" OnClick="PhoneImg_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' >手机图片</asp:LinkButton>
                                                        <asp:LinkButton ID="del" runat="server" OnClick="Del_click"  OnClientClick="return confirm('您确定要删除当前选中的数据吗?');" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'>删除</asp:LinkButton>
                                                        <asp:LinkButton ID="comment" runat="server" OnClick="Coment_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'>评论</asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                  <webdiyer:AspNetPager ID="AspNetPager1" Width="95%" runat="server" PageSize="10"
                PageIndexBoxType="DropDownList" ShowPageIndexBox="Always" TextBeforePageIndexBox="跳到第 "
                TextAfterPageIndexBox="页" EnableTheming="True" HorizontalAlign="Right" CustomInfoHTML="第%CurrentPageIndex%页/共%PageCount%页 共%RecordCount%条 每页%PageSize%条"
                ShowCustomInfoSection="Left" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                PrevPageText="上一页" OnPageChanged="AspNetPager1_PageChanged">
     </webdiyer:AspNetPager>
                <!--分页开始-->
                <asp:Label ID="pagehtml" runat="server" />
                <!--分页结束-->
            </td>
        </tr>
    </table>
    </form>
    <iframe id="wait2" name="wait2" style="display: none;" width="100%" height="600"
        src="../../images/wait.gif" frameborder='0' align='middle' bgcolor='#FFFFFF'>
    </iframe>
    <script type="text/javascript">

        function onhtml() {
            document.all.wait2.style.display = "inline";
            document.all._listpage.style.display = "none";
            return true;
        }   
    </script>
</body>
</html>
